revision:
It specifies the element's language code, like "en" for English, "es" for Spanish, or "fr" for French.
Syntax:
element.lang : returns the lang property : the value of the element's lang attribute.
element.lang = lang_code : sets the lang property.
property value:
lang_code : the value for the element's lang attribute.
example
The language code of this paragraph is:
<div> <p id="par" lang="en">The language code of this paragraph is: <span id="prop"></span></p> </div> <script> let text = document.getElementById("par").lang; document.getElementById("prop").innerHTML = text; </script>